/**
 * NodeStyle. 
 * by Alvaro Lopez, Juan Baquero and Gabriel Bobadilla
 * 
 *Put your VYM files inside the Scketch folder.
 *Press the arrow keys or click the nodes for surfing the map.
 *Check the NODE STYLE section.
 *
 */

import remixlab.remixvym.*;
import remixlab.remixvym.core.graphics.*;
import remixlab.remixvym.core.graphics.link.*;
import remixlab.remixvym.core.graphics.node.*;

void setup() {

  size(800,600,P2D);
  // Object style creation
  style = new StyleGraph();
  //Control de map size with the size parameters
  graph = new SceneMindMap(this,style);

  //Default remixlab mode
  style.initDeafult(this);

  //NODE STYLE.
  //Set the default map node style using the following controls.
  //Change the node shape in the sketch pressing the 'N' button.
  //Comment the styles that you don't want to use.                
  style.addNodeStyle(new RectNode());
  style.addNodeStyle(new OvalNode());
  style.addNodeStyle(new NoneNode());
  style.addNodeStyle(new RoundedRectNode());
  style.addNodeStyle(new DoubleOvalNode());
  style.addNodeStyle(new CalloutNode());
  style.addNodeStyle(new RFishHeadNode());



  //Line shape  
  style.addLinkStyle(new TriangleLink(1));
  style.addLinkStyle(new LineLink());
  style.addLinkStyle(new OvalLink());

  //Load the XML file created from VYM.
  graph.setMap("Example-node-style.xml");
}

void draw() {
  graph.paint();
}

SceneMindMap graph;
StyleGraph style;



